<style>
    .value-table-bigName{
        font-size: 16px;
        font-weight: bold;
    }
    .value-table-title{
        font-weight: bold;
    }
    .value-table table th{
        padding: 9px 0;
        background: #fafafa;
    }
    .value-table table td{
        padding: 5px 10px;
        text-align: center;
        border: 1px solid;
    }
    .value-table{
        border: 1px solid #f6f6f6;
    }
    .value-table-AB,
    .value-table-EF{
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }
    .value-table-AB table,
    .value-table-EF table{
        height: 100%;
    }
    .value-table table{
        border: 2px solid #000;
    }
    .value-table > div {
        margin-top: 20px;
    }
    .value-header-Table td{
        background: #eee;
    }
    .value-table-title-color{
        background: rgb(254,255,119);
    }
    .value-table-button-box{
        display: flex;
        justify-content: flex-end;
        padding: 20px;
    }
</style>
<div class="layui-fluid layui-anim febs-anim" id="febs-evaluation-add" lay-title="价值评估操作">
    <div class="layui-row febs-container">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body febs-table-full">
                    <form class="layui-form layui-table-form" lay-filter="dictDetail-table-form">
                        <div class="layui-row">
                            <div class="layui-col-md10">
                                <div class="layui-form-item">
                                    <div class="layui-inline">
                                        <label class="layui-form-label layui-form-label-sm">油站名称</label>
                                        <div class="layui-input-inline">
                                            <select id="siteSelectAdd" lay-filter="siteFilterAdd" name="shellSiteAdd" lay-verify="required" lay-search="">
                                                <option value=""></option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <button id="showScorePage" type="button" class="layui-btn layui-btn-xs">评分说明</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>
                    <div class="value-table">
                        <!--头部-->
                        <table class="value-header-Table" style="width: 100%;">
                            <tbody>
                            <tr>
                                <td colspan="12" class="value-table-bigName">VALUE STATEMENT 价值评估表</td>
                            </tr>
                            <tr>
                                <td colspan="3" class="value-table-title">TRADE AREA EVALUATION FORM:商圈评估</td>
                                <td>
                                    <!--<input type="text" autocomplete="off" class="layui-input">-->
                                </td>
                                <td colspan="3" class="value-table-title">Evaluator:评估人</td>
                                <td>
                                    <input name="evaluator" type="text" autocomplete="off" class="layui-input">
                                </td>
                                <td colspan="3" class="value-table-title">Date: 日期</td>
                                <td><input name="optDate" type="text" class="layui-input" id="avelDate" placeholder="yyyy-MM-dd"></td>
                            </tr>
                            </tbody>
                        </table>
                        <!--A,B-->
                        <div class="value-table-AB">
                            <!--A-->
                            <table style="width: 49%;">
                                <tbody>
                                <tr>
                                    <td colspan="3" class="value-table-title value-table-title-color">A. SHELL SITE GENERAL INFORMATION壳牌油站概况</td>
                                </tr>
                                <tr style="display: none">
                                    <td class="value-table-title">Site Id :油站id</td>
                                    <td colspan="2"><input name="siteId" type="text" autocomplete="off" class="layui-input"></td>
                                </tr>
                                <tr>
                                    <td class="value-table-title">Site Code :油站编号</td>
                                    <td colspan="2"><input name="siteCode" type="text" autocomplete="off" class="layui-input"></td>
                                </tr>
                                <tr>
                                    <td class="value-table-title">Site Name :油站名称</td>
                                    <td colspan="2"><input name="siteName" type="text" autocomplete="off" class="layui-input"></td>
                                </tr>
                                <tr>
                                    <td class="value-table-title">Address : 地址</td>
                                    <td colspan="2"><input name="siteAddress" type="text" autocomplete="off" class="layui-input"></td>
                                </tr>
                                <tr>
                                    <td class="value-table-title">City : 城市</td>
                                    <td colspan="2"><input name="siteCity" type="text" autocomplete="off" class="layui-input"></td>
                                </tr>
                                <tr>
                                    <td class="value-table-title">District Manager :区域经理</td>
                                    <td colspan="2"><input name="districtManager" type="text" autocomplete="off" class="layui-input"></td>
                                </tr>
                                <tr>
                                    <td class="value-table-title">Territory Manager :大区经理</td>
                                    <td colspan="2"><input name="territoryManager" type="text" autocomplete="off" class="layui-input"></td>
                                </tr>
                                </tbody>
                            </table>
                            <!--B-->
                            <table style="width: 49%;">
                                <tbody>
                                <tr>
                                    <td colspan="3" class="value-table-title value-table-title-color">B. COMPETITOR SITE INFORMATION竞争对手信息（或附上商圈图）</td>
                                </tr>
                                <tr>
                                    <td class="value-table-title">Brand品牌</td>
                                    <td class="value-table-title">Address地址</td>
                                    <td class="value-table-title">Platform运营方式</td>
                                </tr>
                                <tr>
                                    <td><input data-tdName="brandOtherName" name="rivalName" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalAddress" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalPlatform" type="text" autocomplete="off" class="layui-input"></td>
                                </tr>
                                <tr>
                                    <td><input data-tdName="brandOtherName" name="rivalName" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalAddress" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalPlatform" type="text" autocomplete="off" class="layui-input"></td>
                                </tr>
                                <tr>
                                    <td><input data-tdName="brandOtherName" name="rivalName" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalAddress" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalPlatform" type="text" autocomplete="off" class="layui-input"></td>
                                </tr>
                                <tr>
                                    <td><input data-tdName="brandOtherName" name="rivalName" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalAddress" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalPlatform" type="text" autocomplete="off" class="layui-input"></td>
                                </tr>
                                <tr>
                                    <td><input data-tdName="brandOtherName" name="rivalName" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalAddress" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalPlatform" type="text" autocomplete="off" class="layui-input"></td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                        <!--C-->
                        <div class="value-table-C">
                            <table style="width: 100%;">
                                <tbody>
                                <tr>
                                    <td class="value-table-title value-table-title-color" colspan="4">C. DESCRIPTION OF AREA商圈描述</td>
                                </tr>
                                <tr>
                                    <td style="width: 30%">
                                        Shell Site is Primarily…Commuter/Residential/Motorway/Destination Point (Circle One)壳牌站点分类主要属于…CT/LC/Highway…
                                    </td>
                                    <td>
                                        <textarea name="sitePrimarily" class="layui-textarea"></textarea>
                                    </td>
                                    <td style="width: 30%">
                                        Area is Primarily…Retail /Residential/Commerical/Urban/Rural ( Cirlce One)本商圈主要属于…零售区/居住区/商业区/城区/郊区…
                                    </td>
                                    <td>
                                        <textarea name="areaPrimarily" class="layui-textarea"></textarea>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="value-table-title">B2B/B2C Prepaid Card %: 预充值卡占销售比例：</td>
                                    <td>
                                        <input name="cardPrepaid" type="number" autocomplete="off" class="layui-input">
                                    </td>
                                    <td class="value-table-title">Loyalty Customer %：忠诚（常客）客户占比%：</td>
                                    <td>
                                        <input name="loyaltyCustomer" type="number" autocomplete="off" class="layui-input">
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                        <!--D-->
                        <div class="value-table-D">
                            <table style="width: 100%;">
                                <tbody>
                                <tr>
                                    <td class="value-table-title value-table-title-color" colspan="9">D. SHELL AND COMPETITOR SITE DETAILS AND COMPARISONS 壳牌和竞争对手站点详细对比</td>
                                </tr>
                                <tr>
                                    <td rowspan="2" colspan="3"></td>
                                    <td rowspan="2" class="value-table-title value-table-title-color">Shell壳牌</td>
                                    <td colspan="5" class="value-table-title">Competitor Brand竞争品牌</td>
                                </tr>
                                <!--Competitor Brand竞争品牌-->
                                <tr>
                                    <td><input data-tdName="competingBrandsName" disabled type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input data-tdName="competingBrandsName" disabled type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input data-tdName="competingBrandsName" disabled type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input data-tdName="competingBrandsName" disabled type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input data-tdName="competingBrandsName" disabled type="text" autocomplete="off" class="layui-input"></td>
                                </tr>
                                <!---->
                                <tr>
                                    <td style="width: 20%;"></td>
                                    <td class="value-table-title" colspan="2">Distance to Shell Site (in km)与壳牌距离（公里）</td>
                                    <td class="value-table-title-color">
                                        <input disabled type="text" autocomplete="off" class="layui-input">
                                    </td>
                                    <td><input name="rivalDistance" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalDistance" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalDistance" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalDistance" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalDistance" type="text" autocomplete="off" class="layui-input"></td>
                                </tr>
                                <tr>
                                    <td></td>
                                    <td class="value-table-title" colspan="2">Same side or opporsite 同侧或异侧</td>
                                    <td class="value-table-title-color"><input disabled type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalOppor" type="text" placeholder="Yes/No" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalOppor" type="text" placeholder="Yes/No" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalOppor" type="text" placeholder="Yes/No" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalOppor" type="text" placeholder="Yes/No" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalOppor" type="text" placeholder="Yes/No" autocomplete="off" class="layui-input"></td>
                                </tr>
                                <tr>
                                    <td></td>
                                    <td class="value-table-title" colspan="2">Number of Fueling Position 油枪数量（汽油/柴油）</td>
                                    <td class="value-table-title-color">
                                        <input name="positionNumber" type="text" autocomplete="off" class="layui-input">
                                    </td>
                                    <td><input name="rivalPosition" type="number" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalPosition" type="number" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalPosition" type="number" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalPosition" type="number" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalPosition" type="number" autocomplete="off" class="layui-input"></td>
                                </tr>
                                <tr>
                                    <td>LED, MG（只标注主流产品）, or All Products Displayed = APD（标识所有产品）</td>
                                    <td class="value-table-title" colspan="2">Price Monolith (LED, MG, or APD) 价格主标牌</td>
                                    <td class="value-table-title-color">
                                        <input name="priceMonolith" type="text" autocomplete="off" class="layui-input">
                                    </td>
                                    <td><input name="rivalPriceMono" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalPriceMono" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalPriceMono" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalPriceMono" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalPriceMono" type="text" autocomplete="off" class="layui-input"></td>
                                </tr>
                                <tr>
                                    <td>Full = F（全服务）, Self =S（自助）, and Combined = C（综合）</td>
                                    <td class="value-table-title" colspan="2">Service (F, S, or C)服务种类</td>
                                    <td class="value-table-title-color">
                                        <input name="service" type="text" autocomplete="off" class="layui-input">
                                    </td>
                                    <td><input name="rivalService" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalService" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalService" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalService" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalService" type="text" autocomplete="off" class="layui-input"></td>
                                </tr>
                                <tr>
                                    <td>C-Store = CS（便利店）, Lube = L（换油）, and Car Wash =CW（洗车）</td>
                                    <td class="value-table-title" colspan="2">Site Facility (CS, L and CW)站点设施</td>
                                    <td class="value-table-title-color">
                                        <input name="siteFacility" type="text" autocomplete="off" class="layui-input">
                                    </td>
                                    <td><input name="rivalFacility" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalFacility"  type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalFacility"  type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalFacility"  type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalFacility"  type="text" autocomplete="off" class="layui-input"></td>
                                </tr>
                                <!--当前零售价格-->
                                <!--<tr>-->
                                    <!--<td rowspan="5"></td>-->
                                    <!--<td class="value-table-title" rowspan="5">Current Price 当前零售价格</td>-->
                                    <!--<td class="value-table-title">0#</td>-->
                                    <!--<td class="value-table-title-color"><input type="text" autocomplete="off" class="layui-input"></td>-->
                                    <!--<td><input type="text" autocomplete="off" class="layui-input"></td>-->
                                    <!--<td><input type="text" autocomplete="off" class="layui-input"></td>-->
                                    <!--<td><input type="text" autocomplete="off" class="layui-input"></td>-->
                                    <!--<td><input type="text" autocomplete="off" class="layui-input"></td>-->
                                    <!--<td><input type="text" autocomplete="off" class="layui-input"></td>-->
                                <!--</tr>-->
                                <!--<tr>-->
                                    <!--<td class="value-table-title">92#</td>-->
                                    <!--<td class="value-table-title-color"><input type="text" autocomplete="off" class="layui-input"></td>-->
                                    <!--<td><input type="text" autocomplete="off" class="layui-input"></td>-->
                                    <!--<td><input type="text" autocomplete="off" class="layui-input"></td>-->
                                    <!--<td><input type="text" autocomplete="off" class="layui-input"></td>-->
                                    <!--<td><input type="text" autocomplete="off" class="layui-input"></td>-->
                                    <!--<td><input type="text" autocomplete="off" class="layui-input"></td>-->
                                <!--</tr>-->
                                <!--<tr>-->
                                    <!--<td class="value-table-title">95#</td>-->
                                    <!--<td class="value-table-title-color"><input type="text" autocomplete="off" class="layui-input"></td>-->
                                    <!--<td><input type="text" autocomplete="off" class="layui-input"></td>-->
                                    <!--<td><input type="text" autocomplete="off" class="layui-input"></td>-->
                                    <!--<td><input type="text" autocomplete="off" class="layui-input"></td>-->
                                    <!--<td><input type="text" autocomplete="off" class="layui-input"></td>-->
                                    <!--<td><input type="text" autocomplete="off" class="layui-input"></td>-->
                                <!--</tr>-->
                                <!--<tr>-->
                                    <!--<td class="value-table-title">98#</td>-->
                                    <!--<td class="value-table-title-color"><input type="text" autocomplete="off" class="layui-input"></td>-->
                                    <!--<td><input type="text" autocomplete="off" class="layui-input"></td>-->
                                    <!--<td><input type="text" autocomplete="off" class="layui-input"></td>-->
                                    <!--<td><input type="text" autocomplete="off" class="layui-input"></td>-->
                                    <!--<td><input type="text" autocomplete="off" class="layui-input"></td>-->
                                    <!--<td><input type="text" autocomplete="off" class="layui-input"></td>-->
                                <!--</tr>-->
                                <!--<tr>-->
                                    <!--<td class="value-table-title">V-Power 98#</td>-->
                                    <!--<td class="value-table-title-color"><input type="text" autocomplete="off" class="layui-input"></td>-->
                                    <!--<td><input type="text" autocomplete="off" class="layui-input"></td>-->
                                    <!--<td><input type="text" autocomplete="off" class="layui-input"></td>-->
                                    <!--<td><input type="text" autocomplete="off" class="layui-input"></td>-->
                                    <!--<td><input type="text" autocomplete="off" class="layui-input"></td>-->
                                    <!--<td><input type="text" autocomplete="off" class="layui-input"></td>-->
                                <!--</tr>-->
                                <!--Volume销量-->
                                <tr>
                                    <td rowspan="2">Estimated Total Volume in mL/Yr估算的全年销量

                                        Estimated AGO/Mogas Volume % Split估算的柴汽油比例</td>
                                    <td class="value-table-title" rowspan="2">Volume销量</td>
                                    <td class="value-table-title">Total in mL/Yr总销量Ml/年</td>
                                    <td class="value-table-title-color">
                                        <input name="totalIn" type="number" autocomplete="off" class="layui-input">
                                    </td>
                                    <td><input name="rivalTotal" type="number" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalTotal" type="number" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalTotal" type="number" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalTotal" type="number" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalTotal" type="number" autocomplete="off" class="layui-input"></td>
                                </tr>
                                <tr>
                                    <td class="value-table-title">Ago%|Mogas%柴油%，汽油%</td>
                                    <td class="value-table-title-color">
                                        <input name="agoMogas" type="text" autocomplete="off" class="layui-input">
                                    </td>
                                    <td><input name="rivalMogas" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalMogas" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalMogas" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalMogas" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalMogas" type="text" autocomplete="off" class="layui-input"></td>
                                </tr>
                                </tbody>
                                <!--属性-->
                                <tbody>
                                <tr style="background: #eee;">
                                    <td class="value-table-title">Attribute Description属性描述</td>
                                    <td class="value-table-title">Attribute属性</td>
                                    <td class="value-table-title">Scale权重</td>
                                    <td colspan="6"></td>
                                </tr>
                                <tr>
                                    <td colspan="9">Score each attribute of the competitors on a relative scale indicated vs. the Shell site.  为竞争对手的每一属性，相对于壳牌油站评分。
                                        The Real Estate attribute is ranked on a scale of 1 to 10 and the other attributes are ranked on a scale of 1 to 5, with 1 being "Poor".地产质素的分数为1至10 ，而其他属性的分数为1至5。 1是「最差」。</td>
                                </tr>
                                <tr>
                                    <td>Consider site size, frontage, depth, and property shape.  Would we trade our Real Estate for their location?考虑油站大小、前庭、深度和形状等。  我们原意把我们的油站地产跟他们交换吗？</td>
                                    <td class="value-table-title">Real Estate地产素质</td>
                                    <td>1 to 10</td>
                                    <td class="value-table-title-color">
                                        <input data-tdName="shellPoor" name="realEstate" type="number" min="1" max="10" autocomplete="off" class="layui-input">
                                    </td>
                                    <td><input name="rivalEstate" data-tdName="otherPoor1" type="number" min="1" max="10" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalEstate" data-tdName="otherPoor2" type="number" min="1" max="10" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalEstate" data-tdName="otherPoor3" type="number" min="1" max="10" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalEstate" data-tdName="otherPoor4" type="number" min="1" max="10" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalEstate" data-tdName="otherPoor5" type="number" min="1" max="10" autocomplete="off" class="layui-input"></td>
                                </tr>
                                <tr>
                                    <td>The site (perceived by customers) to have the lowest price should score 5.  All others should be assigned a relative score.  在顾客眼中为最低价者有5分，其他油站亦根据顾客的低价感知而相应得分。</td>
                                    <td class="value-table-title">Price价格领先</td>
                                    <td>1 to 5</td>
                                    <td class="value-table-title-color">
                                        <input data-tdName="shellPoor" name="price" type="number" autocomplete="off" class="layui-input">
                                    </td>
                                    <td><input name="rivalPrice" data-tdName="otherPoor1" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalPrice" data-tdName="otherPoor2" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalPrice" data-tdName="otherPoor3" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalPrice" data-tdName="otherPoor4" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalPrice" data-tdName="otherPoor5" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                </tr>
                                <tr>
                                    <td>Consider traffic count, speed, access, de-celeration lanes, barriers, medians, vehicle traffic flow on the site.考虑进油站车量、速度、进出、减速线、路障、隔离带、交通灯和交通流等。</td>
                                    <td class="value-table-title">Traffic Flow交通流</td>
                                    <td>1 to 5</td>
                                    <td class="value-table-title-color">
                                        <input data-tdName="shellPoor" name="trafficFlow" type="number" min="1" max="5" autocomplete="off" class="layui-input">
                                    </td>
                                    <td><input name="rivalTraffic" data-tdName="otherPoor1" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalTraffic" data-tdName="otherPoor2" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalTraffic" data-tdName="otherPoor3" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalTraffic" data-tdName="otherPoor4" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalTraffic" data-tdName="otherPoor5" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                </tr>
                                <tr>
                                    <td>Evaluate visibility of the price sign (monolith) from the primary traffic flow.评估在主要交通流中，价格牌的能见度。</td>
                                    <td class="value-table-title">Price Communication价格沟通</td>
                                    <td>1 to 5</td>
                                    <td class="value-table-title-color">
                                        <input data-tdName="shellPoor" name="priceCommunication" type="number" min="1" max="5" autocomplete="off" class="layui-input">
                                    </td>
                                    <td><input name="rivalCommunication" data-tdName="otherPoor1" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalCommunication" data-tdName="otherPoor2" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalCommunication" data-tdName="otherPoor3" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalCommunication" data-tdName="otherPoor4" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalCommunication" data-tdName="otherPoor5" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                </tr>
                                <tr>
                                    <td>Evaluate and score the relative customer offer, lay-out, appearance  and age of the assets on the site.评估相对的油站配套、设计、外观和资产年龄。</td>
                                    <td class="value-table-title">Site Format油站格局</td>
                                    <td>1 to 5</td>
                                    <td class="value-table-title-color">
                                        <input data-tdName="shellPoor" name="siteFormat" type="number" autocomplete="off" min="1" max="5" class="layui-input">
                                    </td>
                                    <td><input name="rivalFormat" data-tdName="otherPoor1" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalFormat"  data-tdName="otherPoor2" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalFormat"  data-tdName="otherPoor3" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalFormat"  data-tdName="otherPoor4" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalFormat"  data-tdName="otherPoor5" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                </tr>
                                <tr>
                                    <td>Consider the relative quality of the total Retail Operation which includes appearance, cleanliness, merchandising and attentiveness of site staff.考虑相对的整体运营质素 (外观、清洁度、便利店产品、员工服务等)。</td>
                                    <td class="value-table-title">Retail Operation油站服务</td>
                                    <td>1 to 5</td>
                                    <td class="value-table-title-color">
                                        <input data-tdName="shellPoor" name="retailOperation" type="text" autocomplete="off" min="1" max="5" class="layui-input">
                                    </td>
                                    <td><input name="rivalOperation" data-tdName="otherPoor1" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalOperation" data-tdName="otherPoor2" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalOperation" data-tdName="otherPoor3" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalOperation" data-tdName="otherPoor4" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalOperation" data-tdName="otherPoor5" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                </tr>
                                <tr>
                                    <td>Evaluate this attribute on a relative basis from a customer perspective.从客户的角度，作相对的评估。</td>
                                    <td class="value-table-title">Brand Value品牌价值</td>
                                    <td>1 to 5</td>
                                    <td class="value-table-title-color">
                                        <input data-tdName="shellPoor" name="brandValue" type="number" autocomplete="off" min="1" max="5" class="layui-input">
                                    </td>
                                    <td><input name="rivalValue" data-tdName="otherPoor1" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalValue" data-tdName="otherPoor2" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalValue" data-tdName="otherPoor3" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalValue" data-tdName="otherPoor4" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalValue" data-tdName="otherPoor5" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                </tr>
                                <tr>
                                    <td>Product Quality in perception of customer, water of mouth.客户对于油品质量的口碑。</td>
                                    <td class="value-table-title">Product Quality产品质量</td>
                                    <td>1 to 5</td>
                                    <td class="value-table-title-color">
                                        <input data-tdName="shellPoor" name="productQuality" type="number" min="1" max="5" autocomplete="off" class="layui-input">
                                    </td>
                                    <td><input name="rivalQuality" data-tdName="otherPoor1" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalQuality" data-tdName="otherPoor2" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalQuality" data-tdName="otherPoor3" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalQuality" data-tdName="otherPoor4" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalQuality" data-tdName="otherPoor5" type="number" min="1" max="5" autocomplete="off" class="layui-input"></td>
                                </tr>
                                <tr>
                                    <td class="value-table-title value-table-title-color">Does the Shell Site have the Highest Score? 壳牌是得分最高的站点么？</td>
                                    <td class="value-table-title value-table-title-color">
                                        <input name="highRecord" type="text" placeholder="Yes/No" autocomplete="off" class="layui-input">
                                    </td>
                                    <td class="value-table-title value-table-title-color">TOTAL总分</td>
                                    <td class="value-table-title-color">
                                        <input name="totalRecord" disabled type="number" autocomplete="off" class="layui-input">
                                    </td>
                                    <td class="value-table-title-color"><input name="rivalTotalRecord" data-tdName="TotalotherPoor1" disabled type="number" autocomplete="off" class="layui-input"></td>
                                    <td class="value-table-title-color"><input name="rivalTotalRecord" data-tdName="TotalotherPoor2" disabled type="number" autocomplete="off" class="layui-input"></td>
                                    <td class="value-table-title-color"><input name="rivalTotalRecord" data-tdName="TotalotherPoor3" disabled type="number" autocomplete="off" class="layui-input"></td>
                                    <td class="value-table-title-color"><input name="rivalTotalRecord" data-tdName="TotalotherPoor4" disabled type="number" autocomplete="off" class="layui-input"></td>
                                    <td class="value-table-title-color"><input name="rivalTotalRecord" data-tdName="TotalotherPoor5" disabled type="number" autocomplete="off" class="layui-input"></td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                        <!--E,F-->
                        <div class="value-table-EF">
                            <!--E-->
                            <table style="width: 49%;">
                                <tbody>
                                <tr>
                                    <td colspan="3" class="value-table-title value-table-title-color">E. SHELL SITE POTENTIAL VOLUME壳牌油站销售潜力</td>
                                </tr>
                                <tr>
                                    <td style="width: 60%;" colspan="2" class="value-table-title">Prior Year Actual Volume (mL) :上年度实际销量（ML）</td>
                                    <td>
                                        <input name="peryearActualvolume" type="number" autocomplete="off" class="layui-input">
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" class="value-table-title">Potential Volume (mL) :销量潜力</td>
                                    <td>
                                        <input name="potentialVolume" type="text" autocomplete="off" class="layui-input">
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2"></td>
                                    <td>If you had your best Retailer with the best promotions and the most competitive
                                        pricing position for this site, what is the ultimate annual volume potential? 假设这油站拥有最好的油站经理，最好的促销活动，在商圈内价格定位非常有竞争力，你认为这油站的最高销售潜力为何？
                                        根据F部分的盈亏平衡表，考虑销量和毛利的取舍，作出务实的估计。</td>
                                </tr>
                                </tbody>
                            </table>
                            <!--F-->
                            <table style="width: 49%;">
                                <tbody>
                                <tr>
                                    <td colspan="7" class="value-table-title-color">
                                        <div class="value-table-title ">F. SHELL SITE BREAKEVEN VOLUME CHANGE壳牌油站盈亏平衡销量变化 (预先填写)</div>
                                        <div>(New Unit Margin - Old Unit Margin)/New Unit Margin要达致盈亏平衡的销量变化 = (原单升毛利 - 新单升毛利)/新单升毛利</div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="value-table-title" rowspan="2" colspan="2">Unit Margin Today（当前单升毛利）</td>
                                    <td class="value-table-title" colspan="5">Unit Margin Change 单升毛利变化</td>
                                </tr>
                                <!--单升毛利变化-->
                                <tr>
                                    <td><input data-tdName="changeBrandsName" disabled type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input data-tdName="changeBrandsName" disabled type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input data-tdName="changeBrandsName" disabled type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input data-tdName="changeBrandsName" disabled type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input data-tdName="changeBrandsName" disabled type="text" autocomplete="off" class="layui-input"></td>
                                </tr>
                                <!--Mogas MG汽油-->
                                <tr>
                                    <td class="value-table-title">Mogas MG汽油</td>
                                    <td class="value-table-title-color">
                                        <input name="mogasMg" type="text" autocomplete="off" class="layui-input">
                                    </td>
                                    <td><input name="rivalMogasMG" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalMogasMG" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalMogasMG" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalMogasMG" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalMogasMG" type="text" autocomplete="off" class="layui-input"></td>
                                </tr>
                                <!--柴油-->
                                <tr>
                                    <td class="value-table-title">Diesel MG柴油</td>
                                    <td class="value-table-title-color">
                                        <input name="dieselMg" type="text" autocomplete="off" class="layui-input">
                                    </td>
                                    <td><input name="rivalDieselMG" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalDieselMG" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalDieselMG" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalDieselMG" type="text" autocomplete="off" class="layui-input"></td>
                                    <td><input name="rivalDieselMG" type="text" autocomplete="off" class="layui-input"></td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                        <!--G-->
                        <div class="value-table-G">
                            <table>
                                <tr>
                                    <td colspan="2" class="value-table-title value-table-title-color">G. SHELL SITE PRICING STRATEGY AND TACTICS壳牌油站价格战略和价格战术</td>
                                </tr>
                                <tr>
                                    <td colspan="2" style="width: 40%; background: #eee;">Should the site be left with a Market Level Strategy or be placed into a Special Tactical Pricing Cluster in FPS?该油站应使用当前市场策略还是特别定价战术？</td>
                                </tr>
                                <tr>
                                    <td class="value-table-title">当前市场策略</td>
                                    <td>
                                        <textarea name="marketStrategy" class="layui-textarea"></textarea>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="value-table-title">定价战术</td>
                                    <td>
                                        <textarea name="specialPricing" class="layui-textarea"></textarea>
                                    </td>
                                </tr>
                                <tr>
                                    <td>What Specific Pricing Tactic should be employed? (match, lower than, higher than, straight average of, weighted average of, constraint, combination)你建议用何种特别定价战术？ （跟随，最低，最高，算数平均，加权平均，限制，综合型）</td>
                                    <td>
                                        <textarea name="tacticEmploy" class="layui-textarea"></textarea>
                                    </td>
                                </tr>
                                <tr>
                                    <td>Why?原因？</td>
                                    <td>
                                        <textarea name="reason" class="layui-textarea"></textarea>
                                    </td>
                                </tr>
                                <tr>
                                    <td>What kinds of "Non-price" tactics would be useful to attempt at this location (if any)?有何种“非价格”战术可在该油站尝试（如有）？</td>
                                    <td>
                                        <textarea name="attemptLocation" class="layui-textarea"></textarea>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div class="value-table-button-box">
                            <button id="submitExcel" type="button" class="layui-btn layui-btn-sm">提交表格</button>
                        </div>
                        <p id="updateTrue" style="display: none;" th:text="${isUpdate}"></p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script data-th-inline="none" type="text/javascript">
    layui.use(['dropdown', 'element', 'jquery', 'laydate', 'form', 'table', 'febs'], function () {
        var $ = layui.jquery,
            febs = layui.febs,
            form = layui.form,
            $view = $('#febs-evaluation-add'),
            laydate = layui.laydate,
            element = layui.element,
            evaluationString = localStorage.getItem("evaluationObj"),
            evaluationObj = JSON.parse(evaluationString),
            isUpdate = $('#updateTrue').text(),
            detailData={},
            $searchForm = $view.find('form'),
            siteId = "";

        //数据请求-油站
        initDataSite();
        //为修改
        if (isUpdate == 1) {
            dataReturn()
        }

        // 绑定事件 type=number
        $("input[type = 'number']").bind("input onkeyup",function(event){
            switch (this.dataset.tdname) {
                case 'shellPoor': //壳牌
                    shellPoorCount('shellPoor');
                    break;
                case "otherPoor1":
                    otherPoorCount("otherPoor1");
                    break;
                case "otherPoor2":
                    otherPoorCount("otherPoor2");
                    break;
                case "otherPoor3":
                    otherPoorCount("otherPoor3");
                    break;
                case "otherPoor4":
                    otherPoorCount("otherPoor4");
                    break;
                case "otherPoor5":
                    otherPoorCount("otherPoor5");
                    break;
                default:
                    break;
            }
        });
        // 绑定事件 type=text
        $("input[type = 'text']").bind("input onkeyup", function (event) {
            switch (this.dataset.tdname) {
                case "brandOtherName":
                    brandOtherNameFunc("brandOtherName");
                    break;
                default:
                    break;

            }
        });

        laydate.render({
            elem: '#avelDate'
        });

        form.on('select(siteFilterAdd)', function (data) {
            initSiteInfo(data.value);
        });
        //评分说明
        $("#showScorePage").on("click", function () {
            febs.view.tab.change("/activity/shellStatement/info");
        });

        //油站详情
        function initSiteInfo(siteId) {
            febs.get(ctx + 'shellActivity/shellOilDetail/', {"shellId": siteId}, function (res) {
                $("[name=siteId]").val(res.data.siteid);//油站id
                $("[name=siteCode]").val(res.data.siteCode);//油站编号
                $("[name=siteName]").val(res.data.siteName);//油站名称
                $("[name=siteAddress]").val(res.data.siteAddress);//油站地址
                $("[name=siteCity]").val(res.data.siteArea);//油站城市
                $("[name=districtManager]").val(res.data.areaManager);//区域经理
                $("[name=service]").val(res.data.serviceType);//服务种类
                $("[name=siteFacility]").val(res.data.siteFacilities);//站点设施
            })
        }
        //搜索-油站-请求
        function initDataSite() {
            febs.get(ctx + 'shellActivity/shellOilList', null, function (res) {
                if (res.code === 200) {
                    res.data.map(function (item,index) {
                        $('#siteSelectAdd').append(new Option(item.siteName, item.siteid));// 下拉菜单里添加元素
                    });
                    form.render("select");
                    return false;
                }
            })
        }
        //  壳牌-总分计算
        function shellPoorCount (name) {
            var sumShell = 0;
            $("[data-tdName="+name+"]").each(function (index) {
                s = parseFloat($(this).val());
                s = isNaN(s)?0:s;
                sumShell += s*100
            });
            $("[name=totalRecord]").val((sumShell/100).toFixed(2))
        }
        // 其它品牌-总分计算
        function otherPoorCount(name) {
            var sumOther = 0;
            $("[data-tdName="+name+"]").each(function (index) {
                o = parseFloat($(this).val());
                o = isNaN(o)?0:o;
                sumOther += o*100
            });
            $("[data-tdName=Total"+name+"]").val((sumOther/100).toFixed(2))
        }
        //其它品牌-品牌名赋值
        function brandOtherNameFunc (name) {
            var nameArr = [];
            $("[data-tdName="+name+"]").each(function (index) {
                nameArr.push($(this).val());
            });
            $("[data-tdName=competingBrandsName]").each(function (index) {
                $(this).val(nameArr[index])
            });
            $("[data-tdName=changeBrandsName]").each(function (index) {
                $(this).val(nameArr[index])
            });
        }
        //
        form.on('radio(typeRadio)', function(data){
            siteType = data.value;
            $('#febs-activity').find('#query').click();
        });
        //  提交表格
        $("#submitExcel").on("click", function () {
            //竞争对手数据
            var rivalArr = [],
                rivalNameArr = [],//竞争对手-名称
                rivalAddrArr = [],//竞争对手-地址
                rivalPlatArr = [],//竞争对手-运营方式
                rivalDistanceArr = [],//竞争对手-与壳牌距离
                rivalOpporArr = [],//竞争对手-是否同侧
                rivalPositionArr = [],//竞争对手-油枪数量
                rivalPriceMonoArr = [],//竞争对手-价格主标牌
                rivalServiceArr = [],//竞争对手-服务种类
                rivalFacilityArr = [],//竞争对手-站点设施
                rivalTotalArr = [],//竞争对手-总销量
                rivalMogasArr = [],//竞争对手-分类比例
                rivalEstateArr = [],//竞争对手-地产素质
                rivalPriceArr = [],//竞争对手-价格领先
                rivalTrafficArr = [],//竞争对手-交通流
                rivalCommunicationArr = [],//竞争对手-价格沟通
                rivalFormatArr = [],//竞争对手-油站格局
                rivalOperationArr = [],//竞争对手-油站服务
                rivalValueArr = [],//竞争对手-品牌价值
                rivalQualityArr = [],//竞争对手-产品质量
                rivalMogasMGArr = [],//竞争对手-汽油
                rivalDieselMGArr = [],//竞争对手-柴油
                rivalTotalRecordArr = [];//竞争对手-总分
            //竞争对手-名称
            $("[name=rivalName]").each(function () {
                rivalNameArr.push($(this).val())
            });
            //竞争对手-地址
            $("[name=rivalAddress]").each(function () {
                rivalAddrArr.push($(this).val())
            });
            //竞争对手-运营方式
            $("[name=rivalPlatform]").each(function () {
                rivalPlatArr.push($(this).val())
            });
            //竞争对手-与壳牌距离
            $("[name=rivalDistance]").each(function () {
                rivalDistanceArr.push($(this).val())
            });
            //竞争对手-是否同侧
            $("[name=rivalOppor]").each(function () {
                rivalOpporArr.push($(this).val())
            });
            //竞争对手-油枪数量
            $("[name=rivalPosition]").each(function () {
                rivalPositionArr.push($(this).val())
            });
            //竞争对手-价格主标牌
            $("[name=rivalPriceMono]").each(function () {
                rivalPriceMonoArr.push($(this).val())
            });
            //竞争对手-服务种类
            $("[name=rivalService]").each(function () {
                rivalServiceArr.push($(this).val())
            });
            //竞争对手-站点设施
            $("[name=rivalFacility]").each(function () {
                rivalFacilityArr.push($(this).val())
            });
            //竞争对手-总销量
            $("[name=rivalTotal]").each(function () {
                rivalTotalArr.push($(this).val())
            });
            //竞争对手-分类比例
            $("[name=rivalMogas]").each(function () {
                rivalMogasArr.push($(this).val())
            });
            //竞争对手-地产素质
            $("[name=rivalEstate]").each(function () {
                rivalEstateArr.push($(this).val())
            });
            //竞争对手-价格领先
            $("[name=rivalPrice]").each(function () {
                rivalPriceArr.push($(this).val())
            });
            //竞争对手-交通流
            $("[name=rivalTraffic]").each(function () {
                rivalTrafficArr.push($(this).val())
            });
            //竞争对手-价格沟通
            $("[name=rivalCommunication]").each(function () {
                rivalCommunicationArr.push($(this).val())
            });
            //竞争对手-油站格局
            $("[name=rivalFormat]").each(function () {
                rivalFormatArr.push($(this).val())
            });
            //竞争对手-油站服务
            $("[name=rivalOperation]").each(function () {
                rivalOperationArr.push($(this).val())
            });
            //竞争对手-品牌价值
            $("[name=rivalValue]").each(function () {
                rivalValueArr.push($(this).val())
            });
            //竞争对手-产品质量
            $("[name=rivalQuality]").each(function () {
                rivalQualityArr.push($(this).val())
            });
            //竞争对手-汽油
            $("[name=rivalMogasMG]").each(function () {
                rivalMogasMGArr.push($(this).val())
            });
            //竞争对手-柴油
            $("[name=rivalDieselMG]").each(function () {
                rivalDieselMGArr.push($(this).val())
            });
            //竞争对手-总分
            $("[name=rivalTotalRecord]").each(function () {
                rivalTotalRecordArr.push($(this).val())
            });
            //数组拼接
            for (var i = 0; i < rivalNameArr.length; i++) {
                if (rivalNameArr[i]){
                    var _params = {
                        "id": null,
                        "parentId": null,
                        "shellId": null,
                        "shellName": rivalNameArr[i],//名称
                        "platForm": rivalPlatArr[i],//运营方式
                        "siteAddress": rivalAddrArr[i],//地址
                        "distanceShell": rivalDistanceArr[i],//与壳牌距离
                        "opporSite": rivalOpporArr[i],//是否同侧
                        "positionNumber": rivalPositionArr[i],//油枪数量
                        "priceMonolith": rivalPriceMonoArr[i],//价格主标牌
                        "service": rivalServiceArr[i],//服务种类
                        "siteFacility": rivalFacilityArr[i],//站点设施
                        "totalIn": rivalTotalArr[i],//总销量
                        "agoMogas": rivalMogasArr[i],//分类比例
                        "realEstate": rivalEstateArr[i],//地产素质
                        "price": rivalPriceArr[i],//价格领先
                        "trafficFlow": rivalTrafficArr[i],//交通流
                        "priceCommunication": rivalCommunicationArr[i],//价格沟通
                        "siteFormat": rivalFormatArr[i],//油站格局
                        "retailOperation": rivalOperationArr[i],//油站服务
                        "brandValue": rivalValueArr[i],//品牌价值
                        "productQuality": rivalQualityArr[i],//产品质量
                        "mogasMg": rivalMogasMGArr[i],//汽油
                        "dieselMg": rivalDieselMGArr[i],//柴油
                        "totalRecord": rivalTotalRecordArr[i]//总分
                    }
                    rivalArr.push(_params)
                }
            }
            //提交内容
            var obj = {
                "shellId": $("[name=siteId]").val(),
                "shellStatement": { //壳牌数据
                    "shellId": null,//油站id
                    "shellName": $("[name=siteName]").val(),//油站名称
                    "siteAddress": $("[name=siteAddress]").val(),//油站地址
                    "siteCity": $("[name=siteCity]").val(),//油站城市
                    "siteCode": $("[name=siteCode]").val(),//油站编号
                    "districtManager": $("[name=districtManager]").val(),//区域经理
                    "territoryManager": $("[name=territoryManager]").val(),//大区经理
                    "evaluator": $("[name=evaluator]").val(),//评估人
                    "optDate": $("[name=optDate]").val(),//评估日期
                    "sitePrimarily": $("[name=sitePrimarily]").val(),//商圈描述站点分类
                    "areaPrimarily": $("[name=areaPrimarily]").val(),//商圈所属
                    "cardPrepaid": $("[name=cardPrepaid]").val(),//预售充值比例
                    "loyaltyCustomer": $("[name=loyaltyCustomer]").val(),//忠诚客户比例
                    "positionNumber": $("[name=positionNumber]").val(),//油枪数量
                    "priceMonolith": $("[name=priceMonolith]").val(),//价格主标牌
                    "service": $("[name=service]").val(),//服务种类
                    "siteFacility": $("[name=siteFacility]").val(),//站点设施
                    "totalIn": $("[name=totalIn]").val(),//总销量
                    "agoMogas": $("[name=agoMogas]").val(),//分类销量比例
                    "realEstate": $("[name=realEstate]").val(),//地产素质
                    "price": $("[name=price]").val(),//价格领先
                    "trafficFlow": $("[name=trafficFlow]").val(),//交通流
                    "priceCommunication": $("[name=priceCommunication]").val(),//价格沟通
                    "siteFormat": $("[name=siteFormat]").val(),//油站格局
                    "retailOperation": $("[name=retailOperation]").val(),//油站服务
                    "brandValue": $("[name=brandValue]").val(),//品牌价值
                    "productQuality": $("[name=productQuality]").val(),//产品质量
                    "totalRecord": $("[name=totalRecord]").val(),//总分
                    "highRecord": $("[name=highRecord]").val(),//是否最高分
                    "potentialVolume": $("[name=potentialVolume]").val(),//销售潜力
                    "peryearActualvolume": $("[name=peryearActualvolume]").val(),//上年度实际销量
                    "mogasMg": $("[name=mogasMg]").val(),//汽油单升毛利
                    "dieselMg": $("[name=dieselMg]").val(),//柴油单升毛利
                    "specialPricing": $("[name=specialPricing]").val(),//定价战术
                    "marketStrategy": $("[name=marketStrategy]").val(),//市场策略
                    "tacticEmploy": $("[name=tacticEmploy]").val(),//建议定价战术
                    "reason": $("[name=reason]").val(),//原因
                    "attemptLocation": $("[name=attemptLocation]").val()//非战术建议
                },
                "shellStatementCompetitorList": rivalArr
            }

            if (isUpdate == 1) {
                obj.id = evaluationObj.id.toString()
                var dataString = JSON.stringify(obj);
                febs.post(ctx + 'shellStatement/shellStatementUpdate', { "jsonStatement": dataString } , function () {
                    febs.alert.success('操作成功');
                    layer.closeAll();
                    febs.view.tab.change("/activity/shellStatement");
                    $('#febs-evaluation').find('#query').click();
                });
            } else {
                var dataString = JSON.stringify(obj);
                febs.post(ctx + 'shellStatement/shellStatementAdd', { "jsonStatement": dataString } , function () {
                    febs.alert.success('操作成功');
                    layer.closeAll();
                    febs.view.tab.change("/activity/shellStatement");
                    $('#febs-evaluation').find('#query').click();
                });
            }


        });
        //  数据回填
        function dataReturn() {
            febs.get(ctx + 'shellStatement/shellStatementyDetail', {"id": evaluationObj.id}, function (res) {
                if (res.code === 200) {
                    detailData = res.data;
                    $("[name=shellSiteAdd]").val(res.data.shellStatement.shellId);
                    //数据回填
                    $("[name=siteId]").val(res.data.shellStatement.shellId);//油站id
                    $("[name=siteName]").val(res.data.shellStatement.shellName);//油站名称
                    $("[name=siteAddress]").val(res.data.shellStatement.siteAddress);//油站地址
                    $("[name=siteCity]").val(res.data.shellStatement.siteCity);//油站城市
                    $("[name=siteCode]").val(res.data.shellStatement.siteCode);//油站编号
                    $("[name=districtManager]").val(res.data.shellStatement.districtManager);//区域经理
                    $("[name=territoryManager]").val(res.data.shellStatement.territoryManager);//大区经理
                    $("[name=evaluator]").val(res.data.shellStatement.evaluator);//评估人
                    $("[name=optDate]").val(res.data.shellStatement.optDate);//评估日期
                    $("[name=sitePrimarily]").val(res.data.shellStatement.sitePrimarily);//商圈描述站点分类
                    $("[name=areaPrimarily]").val(res.data.shellStatement.areaPrimarily);//商圈所属
                    $("[name=cardPrepaid]").val(res.data.shellStatement.cardPrepaid);//预售充值比例
                    $("[name=loyaltyCustomer]").val(res.data.shellStatement.loyaltyCustomer);//忠诚客户比例
                    $("[name=positionNumber]").val(res.data.shellStatement.positionNumber);//油枪数量
                    $("[name=priceMonolith]").val(res.data.shellStatement.priceMonolith);//价格主标牌
                    $("[name=service]").val(res.data.shellStatement.service);//服务种类
                    $("[name=siteFacility]").val(res.data.shellStatement.siteFacility);//站点设施
                    $("[name=totalIn]").val(res.data.shellStatement.totalIn);//总销量
                    $("[name=agoMogas]").val(res.data.shellStatement.agoMogas);//分类销量比例
                    $("[name=realEstate]").val(res.data.shellStatement.realEstate);//地产素质
                    $("[name=price]").val(res.data.shellStatement.price);//价格领先
                    $("[name=trafficFlow]").val(res.data.shellStatement.trafficFlow);//交通流
                    $("[name=priceCommunication]").val(res.data.shellStatement.priceCommunication);//价格沟通
                    $("[name=siteFormat]").val(res.data.shellStatement.siteFormat);//油站格局
                    $("[name=retailOperation]").val(res.data.shellStatement.retailOperation);//油站服务
                    $("[name=brandValue]").val(res.data.shellStatement.brandValue);//品牌价值
                    $("[name=productQuality]").val(res.data.shellStatement.productQuality);//产品质量
                    $("[name=totalRecord]").val(res.data.shellStatement.totalRecord);//总分
                    $("[name=highRecord]").val(res.data.shellStatement.highRecord);//是否最高分
                    $("[name=potentialVolume]").val(res.data.shellStatement.potentialVolume);//销售潜力
                    $("[name=peryearActualvolume]").val(res.data.shellStatement.peryearActualvolume);//上年度实际销量
                    $("[name=mogasMg]").val(res.data.shellStatement.mogasMg);//汽油单升毛利
                    $("[name=dieselMg]").val(res.data.shellStatement.dieselMg);//柴油单升毛利
                    $("[name=specialPricing]").val(res.data.shellStatement.specialPricing);//定价战术
                    $("[name=marketStrategy]").val(res.data.shellStatement.marketStrategy);//市场策略
                    $("[name=tacticEmploy]").val(res.data.shellStatement.tacticEmploy);//建议定价战术
                    $("[name=reason]").val(res.data.shellStatement.reason);//原因
                    $("[name=attemptLocation]").val(res.data.shellStatement.attemptLocation);//非战术建议
                    //
                    //竞争对手-名称
                    $("[name=rivalName]").each(function (index) {
                        if (res.data.shellStatementCompetitorList[index]) {
                            $(this).val(res.data.shellStatementCompetitorList[index].shellName)
                        }
                    });
                    //竞争对手-地址
                    $("[name=rivalAddress]").each(function (index) {
                        if (res.data.shellStatementCompetitorList[index]) {
                            $(this).val(res.data.shellStatementCompetitorList[index].siteAddress)
                        }
                    });
                    // //竞争对手-运营方式
                    $("[name=rivalPlatform]").each(function (index) {
                        if (res.data.shellStatementCompetitorList[index]) {
                            $(this).val(res.data.shellStatementCompetitorList[index].platForm)
                        }
                    });
                    // //竞争对手-与壳牌距离
                    $("[name=rivalDistance]").each(function (index) {
                        if (res.data.shellStatementCompetitorList[index]) {
                            $(this).val(res.data.shellStatementCompetitorList[index].distanceShell)
                        }
                    });
                    // //竞争对手-是否同侧
                    $("[name=rivalOppor]").each(function (index) {
                        if (res.data.shellStatementCompetitorList[index]) {
                            $(this).val(res.data.shellStatementCompetitorList[index].opporSite)
                        }
                    });
                    // //竞争对手-油枪数量
                    $("[name=rivalPosition]").each(function (index) {
                        if (res.data.shellStatementCompetitorList[index]) {
                            $(this).val(res.data.shellStatementCompetitorList[index].positionNumber)
                        }
                    });
                    // //竞争对手-价格主标牌
                    $("[name=rivalPriceMono]").each(function (index) {
                        if (res.data.shellStatementCompetitorList[index]) {
                            $(this).val(res.data.shellStatementCompetitorList[index].priceMonolith)
                        }
                    });
                    // //竞争对手-服务种类
                    $("[name=rivalService]").each(function (index) {
                        if (res.data.shellStatementCompetitorList[index]) {
                            $(this).val(res.data.shellStatementCompetitorList[index].service)
                        }
                    });
                    // //竞争对手-站点设施
                    $("[name=rivalFacility]").each(function (index) {
                        if (res.data.shellStatementCompetitorList[index]) {
                            $(this).val(res.data.shellStatementCompetitorList[index].siteFacility)
                        }
                    });
                    // //竞争对手-总销量
                    $("[name=rivalTotal]").each(function (index) {
                        if (res.data.shellStatementCompetitorList[index]) {
                            $(this).val(res.data.shellStatementCompetitorList[index].totalIn)
                        }
                    });
                    // //竞争对手-分类比例
                    $("[name=rivalMogas]").each(function (index) {
                        if (res.data.shellStatementCompetitorList[index]) {
                            $(this).val(res.data.shellStatementCompetitorList[index].agoMogas)
                        }
                    });
                    // //竞争对手-地产素质
                    $("[name=rivalEstate]").each(function (index) {
                        if (res.data.shellStatementCompetitorList[index]) {
                            $(this).val(res.data.shellStatementCompetitorList[index].realEstate)
                        }
                    });
                    // //竞争对手-价格领先
                    $("[name=rivalPrice]").each(function (index) {
                        if (res.data.shellStatementCompetitorList[index]) {
                            $(this).val(res.data.shellStatementCompetitorList[index].price)
                        }
                    });
                    // //竞争对手-交通流
                    $("[name=rivalTraffic]").each(function (index) {
                        if (res.data.shellStatementCompetitorList[index]) {
                            $(this).val(res.data.shellStatementCompetitorList[index].trafficFlow)
                        }
                    });
                    // //竞争对手-价格沟通
                    $("[name=rivalCommunication]").each(function (index) {
                        if (res.data.shellStatementCompetitorList[index]) {
                            $(this).val(res.data.shellStatementCompetitorList[index].priceCommunication)
                        }

                    });
                    // //竞争对手-油站格局
                    $("[name=rivalFormat]").each(function (index) {
                        if (res.data.shellStatementCompetitorList[index]) {
                            $(this).val(res.data.shellStatementCompetitorList[index].siteFormat)
                        }
                    });
                    // //竞争对手-油站服务
                    $("[name=rivalOperation]").each(function (index) {
                        if (res.data.shellStatementCompetitorList[index]) {
                            $(this).val(res.data.shellStatementCompetitorList[index].retailOperation)
                        }
                    });
                    // //竞争对手-品牌价值
                    $("[name=rivalValue]").each(function (index) {
                        if (res.data.shellStatementCompetitorList[index]) {
                            $(this).val(res.data.shellStatementCompetitorList[index].brandValue)
                        }
                    });
                    // //竞争对手-产品质量
                    $("[name=rivalQuality]").each(function (index) {
                        if (res.data.shellStatementCompetitorList[index]) {
                            $(this).val(res.data.shellStatementCompetitorList[index].productQuality)
                        }
                    });
                    // //竞争对手-汽油
                    $("[name=rivalMogasMG]").each(function (index) {
                        if (res.data.shellStatementCompetitorList[index]) {
                            $(this).val(res.data.shellStatementCompetitorList[index].mogasMg)
                        }
                    });
                    // //竞争对手-柴油
                    $("[name=rivalDieselMG]").each(function (index) {
                        if (res.data.shellStatementCompetitorList[index]) {
                            $(this).val(res.data.shellStatementCompetitorList[index].dieselMg)
                        }
                    });
                    // //竞争对手-总分
                    $("[name=rivalTotalRecord]").each(function (index) {
                        if (res.data.shellStatementCompetitorList[index]) {
                            $(this).val(res.data.shellStatementCompetitorList[index].totalRecord)
                        }
                    });
                    //竞争对手-总分
                    $("[data-tdName=competingBrandsName]").each(function (index) {
                        if (res.data.shellStatementCompetitorList[index]) {
                            $(this).val(res.data.shellStatementCompetitorList[index].shellName)
                        }
                    });
                    //竞争对手-总分
                    $("[data-tdName=changeBrandsName]").each(function (index) {
                        if (res.data.shellStatementCompetitorList[index]) {
                            $(this).val(res.data.shellStatementCompetitorList[index].shellName)
                        }
                    });
                    form.render();
                }
            })
        }
    })
</script>